varignon's theorem of moments and solved examples